home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Development Tools & Languages / Dylan Related / Marlais / Marlais 0.5.9-portable sources / gc / BCC_MAKEFILE < prev    next >
Encoding:
Text File  |  1995-03-15  |  2.0 KB  |  162 lines  |  [TEXT/ttxt]

  1. # Makefile for Borland C++ 4.5 on NT
  2.  
  3. #
  4.  
  5. bc=        c:\bc45
  6.  
  7. bcbin=     $(bc)\bin
  8.  
  9. bclib=     $(bc)\lib
  10.  
  11. bcinclude= $(bc)\include
  12.  
  13.  
  14.  
  15. cc=      $(bcbin)\bcc32
  16.  
  17. rc=      $(bcbin)\brc32
  18.  
  19. lib=     $(bcbin)\tlib
  20.  
  21. link=    $(bcbin)\tlink32
  22.  
  23. cflags=  -R -v -vi -H -H=gc.csm -I$(bcinclude);cord -L$(bclib) \
  24.  
  25.          -w-pro -w-aus -w-par -w-ccc -w-rch -a4 -D__STDC__=0
  26.  
  27. #defines= -DSILENT
  28.  
  29. defines= -DSMALL_CONFIG -DSILENT -DALL_INTERIOR_POINTERS
  30.  
  31.  
  32.  
  33. .c.obj:
  34.  
  35.     $(cc) @&&|
  36.  
  37.         $(cdebug) $(cflags) $(cvars) $(defines) -o$* -c $*.c
  38.  
  39. |
  40.  
  41.  
  42.  
  43. .cpp.obj:
  44.  
  45.     $(cc) @&&|
  46.  
  47.         $(cdebug) $(cflags) $(cvars) $(defines) -o$* -c $*.cpp
  48.  
  49. |
  50.  
  51.  
  52.  
  53. .rc.res:
  54.  
  55.     $(rc) -i$(bcinclude) -r -fo$* $*.rc
  56.  
  57.  
  58.  
  59. XXXOBJS= XXXalloc.obj XXXreclaim.obj XXXallchblk.obj XXXmisc.obj \
  60.  
  61.     XXXmach_dep.obj XXXos_dep.obj XXXmark_rts.obj XXXheaders.obj XXXmark.obj \
  62.  
  63.     XXXobj_map.obj XXXblacklst.obj XXXfinalize.obj XXXnew_hblk.obj \
  64.  
  65.     XXXdbg_mlc.obj XXXmalloc.obj XXXstubborn.obj XXXdyn_load.obj \
  66.  
  67.     XXXtypd_mlc.obj XXXptr_chck.obj XXXgc_cpp.obj
  68.  
  69.  
  70.  
  71. OBJS= $(XXXOBJS:XXX=)
  72.  
  73.  
  74.  
  75. all: gctest.exe cord\de.exe test_cpp.exe
  76.  
  77.  
  78.  
  79. $(OBJS) test.obj: gc_priv.h gc_hdrs.h gc.h config.h MAKEFILE
  80.  
  81.  
  82.  
  83. gc.lib: $(OBJS)
  84.  
  85.     -del gc.lib
  86.  
  87.     tlib $* @&&|
  88.  
  89.         $(XXXOBJS:XXX=+)
  90.  
  91. |
  92.  
  93.  
  94.  
  95. gctest.exe: test.obj gc.lib
  96.  
  97.     $(cc) @&&|
  98.  
  99.         $(cflags) -W -e$* test.obj gc.lib
  100.  
  101. |
  102.  
  103.  
  104.  
  105. cord\de.obj cord\de_win.obj: cord\cord.h cord\cord_pos.h cord\de_win.h \
  106.  
  107.     cord\de_cmds.h
  108.  
  109.  
  110.  
  111. cord\de.exe: cord\cordbscs.obj cord\cordxtra.obj cord\de.obj cord\de_win.obj \
  112.  
  113.         cord\de_win.res gc.lib
  114.  
  115.     $(cc) @&&|
  116.  
  117.         $(cflags) -W -e$* cord\cordbscs.obj cord\cordxtra.obj \
  118.  
  119.         cord\de.obj cord\de_win.obj gc.lib
  120.  
  121. |
  122.  
  123.     $(rc) cord\de_win.res cord\de.exe
  124.  
  125.  
  126.  
  127. gc_cpp.obj: gc_cpp.h gc.h
  128.  
  129.  
  130.  
  131. gc_cpp.cpp: gc_cpp.cc
  132.  
  133.     copy gc_cpp.cc gc_cpp.cpp
  134.  
  135.  
  136.  
  137. test_cpp.cpp: test_cpp.cc
  138.  
  139.     copy test_cpp.cc test_cpp.cpp
  140.  
  141.  
  142.  
  143. test_cpp.exe: test_cpp.obj gc_cpp.h gc.h gc.lib
  144.  
  145.     $(cc) @&&|
  146.  
  147.         $(cflags) -WC -e$* test_cpp.obj gc.lib
  148.  
  149. |
  150.  
  151.  
  152.  
  153. scratch:
  154.  
  155.     -del *.obj *.res *.exe *.csm cord\*.obj cord\*.res cord\*.exe cord\*.csm
  156.  
  157.  
  158.  
  159.  
  160.  
  161. 
  162.